:root {
  --primary-color: pink;
  --logo-color: gray;
}

.copyright-min {
  font-size: 9px;
  height: 20px;
  margin: 0;
}

main {
    max-width: 1200px;
    margin: 0 auto;
}

#nav-bar-inner {
  max-width: 1200px;
  display: flex;
  margin: 0 auto;
}

body {
    font-size: 17px;
}

ul {
    padding: 0;
    margin: 0;
}

li {
    padding: 0;
    list-style: none;
}

a:link,
a:visited,
a:hover{
    color: #000000;
    text-decoration: none;
}

header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
}

header h1,
header h3 {
    margin: 5px 0;
    color: var(--logo-color);
    font-weight: 500;
}

header h1 {
    font-size: 29px;
}

header h3 {
    font-size: 23px;
}

header .logo {
    display: block;
    position: relative;
    padding-left: 80px;
}

.logo_img {
    position: absolute;
    left: 0;
    margin: 5px;
    width: 60px;
    height: 60px;
}

#nav-bar {
    height: 60px;
    background-color: var(--primary-color);
}

#nav-bar ul {
    display: flex;
    list-style: none;
    height: 60px;
    align-items: center;
    color: #ffffff;
    padding: 0 20px;
    margin: 0;
    transition: height 1s;
}

#nav-bar ul li {
    padding: 0;
    margin: 0 10px;
}

#nav-bar ul li a {
    color: #ffffff;
}

#nav-bar #show-nav {
    display: none;
    align-items: center;
    height: 60px;
    color: #ffffff;
    padding: 0 20px;
    margin-right: 20px;
}

#focus {
    width: 100%;
    height: 400px;
    position: relative;
}

#focus-box {
    width: 100%;
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

.focus-item {
    padding: 0;
    opacity: 0;
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    transition: opacity .5s;
}

.focus-item.active {
    opacity: 1;
}

.focus-item a {
    display: block;
    height: 100%;
    position: relative;
}

.focus-item img {
    width: 100%;
    height: 400px;
}

.focus-item p {
    position: absolute;
    right: 20px;
    bottom: 10px;
    padding: 10px 20px;
    background-color: rgba(0,0,0, 0.3);
}

#prev_swiper,
#next_swiper {
    position: absolute;
    top: 50%;
    font-size: 23px;
    padding: 20px 10px;
    transform: translateY(-50%);
    background-color: rgba(128,128,128, 0.3);
}

#next_swiper {
    right: 0;
}

#news_box {
    display: flex;
    flex-wrap: wrap;
}

#news_box .news_box_item {
    flex: 1;
    width: 30%;
    margin: 0 10px;
}

.news_box_item .title {
    padding: 15px 0;
    font-weight: bold;
    display: flex;
    align-items: center;
    border-bottom: 3px solid #ADADAD;
}

.news_box_item .title .title_block {
    margin: 0 5px;
    color: #adadad;
}

.news_box_item .title_block.active {
    color: #000000;
}

.news_box_item .title:before {
    width: 12px;
    height: 12px;
    content: '';
    display: block;
    background-image: url(../images/dd.jpg);
    margin-right: 5px;
}

.news_box_item .content_block {
    display: none;
}

.news_box_item .content_block.active {
    display: block;
}

.article {
    display: flex;
    margin: 10px;
}


.article_title {
    white-space: nowrap;
    text-overflow:ellipsis;
    overflow:hidden;
}

.flex-1 {
    flex: 1;
    min-width: 20px;
}

.article_time {
    color: #ADADAD;
    white-space: nowrap;
}

/* News Swiper */
.news_swiper {
    width: calc(100% - 10px);
    margin: 5px;
    position: relative;
}

.news_swiper_list {
    width: 100%;
    position: relative;
}

.news_swiper_item {
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    transition: opacity .5s;
}

.news_swiper_item .news_swiper_img {
    width: 100%;
}

.news_swiper_item.active {
    opacity: 1;
}

.news_swiper_title {
    position: absolute;
    left: 0;
    bottom: 0;
    margin: 5px;
    color: #ffffff;
}

.news_swiper_dot_box {
    position: absolute;
    right: 0;
    bottom: 0;
    display: flex;
}

.news_swiper_dot {
    width: 20px;
    height: 20px;
    text-align: center;
    color: #ffffff;
    margin: 5px;
    background-color: rgba(0,0,0, 0.5);
}

.news_swiper_dot.active {
    background-color: rgba(255,0,0, 0.5);
}

.friendly_link {
    width: 100%;
    height: 60px;
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 0 20px;
}

.link_list {
    max-width: 1200px;
    margin: 0 auto;
    height: 60px;
    display: flex;
    align-items: center;
}

.link_item {
    margin: 0 10px;
}

.link_item a {
    color: #ffffff;
}

.footer {
    text-align: center;
    color: #adadad;
    padding: 10px 0;
    background-color: #f2f2f2;
}

@media screen and (max-width: 1080px){
    #nav-bar {
        flex-direction: column;
        height: auto !important;
    }

    #nav-bar ul {
        /*display: none !important;*/
        flex-direction: column;
        align-items: flex-start!important;
        height: 0;
        overflow: hidden;
    }

    #nav-bar ul li {
        margin: 10px 0!important;
    }

    #nav-bar-inner {
      flex-direction: column;
    }

    #nav-bar #show-nav {
        display: flex!important;
    }

    #nav-bar ul.active {
        height: auto;
        transition: height 1s;
    }

    #news_box .news_box_item {
        width: calc(100% - 20px);
        flex: none;
    }

    .friendly_link {
        height: auto;
    }

    .link_list {
        height: auto;
        flex-direction: column;
        align-items: start;
    }

    .link_item {
        margin: 10px;
    }

    header {
        justify-content: center;
    }

    .header_right_box,
    .header_flex_box{
        display: none;
    }
}

@media screen and (max-device-width: 1080px){
    .column_name {
        font-size: 38px;
    }
    body {
        font-size: 34px;
    }
    .article {
        font-size: 30px;
    }

    #nav-bar #show-nav {
        font-size: 38px;
        margin: 20px;
    }
    header h1 {
        font-size: 58px;
    }

    header h3 {
        font-size: 46px;
    }

    header .logo {
        padding-left: 160px;
    }

    .logo_img {
        margin: 5px;
        width: 120px;
        height: 120px;
    }
}